package com.southminority.ethnic.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;

import com.southminority.ethnic.column.ExcelColumn;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 用户表
 * @TableName user
 */
@EqualsAndHashCode(callSuper = true)
@TableName(value ="user")
@Data
public class User extends BasePoJo implements Serializable {
    /**
     * 用户ID
     */
    @TableId(type = IdType.AUTO)
    @Schema(description = "用户ID")
    @ExcelColumn(name = "用户ID", columnWidth = 10, value = "1",hidden = true)
    private Long id;

    /**
     * 用户名
     */
    @Schema(description = "用户名")
    @ExcelColumn(name = "用户名", columnWidth = 10, value = "张三",nonNull = true)
    private String username;

    /**
     * 密码
     */
    @Schema(description = "密码")
    @ExcelColumn(name = "密码", columnWidth = 30, value = "123456",nonNull = true)
    private String password;

    /**
     * 邮箱
     */
    @Schema(description = "邮箱")
    @ExcelColumn(name = "邮箱", columnWidth = 20, value = "123456@qq.com",nonNull = true)
    private String email;

    /**
     * 手机号
     */
    @Schema(description = "手机号")
    @ExcelColumn(name = "手机号", columnWidth = 20, value = "18888888888")
    private String phone;

    /**
     * 头像URL
     */
    @Schema(description = "头像URL")
    @ExcelColumn(name = "头像URL", columnWidth = 40, value = "https://www.baidu.com")
    private String avatar;

    /**
     * 用户token
     */
    @Schema(description = "用户token")
    @ExcelColumn(name = "用户token", columnWidth = 20, value = "123456",hidden = true)
    private String token;
    /**
     * 用户类型：0-普通用户，1-普通管理员，2-超级管理员
     */
    @Schema(description = "用户类型：0-普通用户，1-普通管理员，2-超级管理员")
    @ExcelColumn(name = "用户类型(0-普通用户，1-普通管理员，2-超级管理员)", columnWidth = 10, value = "0")
    private Integer userType;
}
